#!/usr/bin/env bash
# Copyright (c) 2021 maminjie <maminjie2@huawei.com>
# SPDX-License-Identifier: MulanPSL-2.0

# helper function for verifying args in functions
required() {
  for i in $#; do
    local arg=$(eval echo \\\$$i)
    [ -z "$arg" ] && echo "Missing arguments." && return 1
  done
  return 0
}
